<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page pageEncoding="UTF-8" language="java" contentType="text/html; utf-8" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>修改手机</title>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/adduser.css"/>
	</head>
	<body>
		<div class="bg">
			<div class="logo lfet"></div>
			<div class="font lfet">
				修改手机>>>
			</div>
			<div class="wizard right">
				<form action="${pageContext.request.contextPath}/phone/updatePhoneController">
		            <div class="content">
		            	<div class="col">
		                    <div class="form-group">
		                  		<label class="lfet">手机名称:</label>
		                    	<input name="name" type="text" class="form-control error inp-bg1 left" value="${requestScope.phone1.name}" style="outline:none;">
		                 	</div>
		            	    <div class="form-group">
			                    <label style="text-align: left;">是否有货:</label>
										<input type="radio" style="outline:none;" value="1" <c:if test="${requestScope.phone1.state==1}">
											   checked="checked"
											   </c:if> name="state1"><span>有货</span>
										<input type="radio" style="outline:none;" value="2"
										<c:if test="${requestScope.phone1.state==0}">
											   checked="checked"
										</c:if>
											   name="state1"><span>无货</span>
		                	</div>
		                	<div class="form-group">
		                    	<label class="lfet">价格:</label>
		                    	<input type="text" name="price" value="${requestScope.phone1.price}" class="form-control error dh" style="outline:none;">
		                	</div>
			                <div class="form-group">
		                    	<label class="lfet">品牌:</label>
		                    	<select name="pinpai"  class="form-control error map" style="outline:none;height: 30px;width: 300px;" >
									<c:forEach items="${sessionScope.brands}" var="bran">
										<option  value="${bran.id}" <c:if test="${requestScope.phone1.brandid==bran.id}">selected</c:if>${bran.name}</option>
									</c:forEach>
		                    	</select>
		                	</div>
			                <div class="bottom" style="text-align: center;">
								<!-- 这个button也可以提交表单，不需要改成submit -->
			                	<button style="text-align: center;">提 交</button>
			                </div>
			            </div>
		            </div>
				</form>
	        </div>
	    </div>
	</body>
</html>
